package com.example.mapper;


import com.example.pojo.Student;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface StudentMapper {



    @Select("select * from student")
    public List<Student> SelectAll();

    public void Add(Student student);


    public void Update(Student student);


    public Student selectById(int id);

    @Delete("delete  from student where id=#{id}")
    public void deleteById(int id);




}
